<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Validator</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Validator</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This class is the base class upon which to extend custom validators</p>
	<ul class="tags">
				<li><span class="field">tutorial:</span> validator.pkg</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_kernel---validator.php.html">/kernel/validator.php</a> (line <span class="field">25</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/AlphaValidator.html">AlphaValidator</a></td>
					<td>
											This validator is used to check whether or not data  is composed of only letters.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/AlphanumValidator.html">AlphanumValidator</a></td>
					<td>
											This validator is used to check whether or not data  is composed of only alphanumeric characters.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/EmailValidator.html">EmailValidator</a></td>
					<td>
											This validator is used to check whether or not data  is a valid email address.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/PhoneValidator.html">PhoneValidator</a></td>
					<td>
											This validator is used to check whether or not data  is a valid phone number
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/CustomValidator.html">CustomValidator</a></td>
					<td>
											This validator calls a user defined function to validate the data.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/GdValidator.html">GdValidator</a></td>
					<td>
											This validator checks whether the format of the given image is supported  by our version of GD.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/RegexValidator.html">RegexValidator</a></td>
					<td>
											This  validator is used to check data using  a Regular Expression passed as a parameter
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/DummyValidator.html">DummyValidator</a></td>
					<td>
											This validator is just a dummy validator. It is used when a field is required  but no other validation is needed.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/MatchValidator.html">MatchValidator</a></td>
					<td>
											This validator is used to check whether or not  two values are the same.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/ValueValidator.html">ValueValidator</a></td>
					<td>
											This  validator checks that the data is equal to a certain value (i.e. true)  using case insensitve string comparison
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/RequiredValidator.html">RequiredValidator</a></td>
					<td>
											This validator is used to check whether or data  is present.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/XmlValidator.html">XmlValidator</a></td>
					<td>
											This validator is used to make sure that a string  contains is xml safe (i.e all tags close and nest appropriately)  It does not check for headers and root tags.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/LengthValidator.html">LengthValidator</a></td>
					<td>
											This validator is used to check that a string is under a certain length.
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Nexista/Validators/NumericValidator.html">NumericValidator</a></td>
					<td>
											This validator is used to check whether or not data  is composed of only numbers.
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																								<div class="var-title">
					<span class="var-type">boolean</span>
					<a href="#$empty" title="details" class="var-name">$empty</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$message" title="details" class="var-name">$message</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$params" title="details" class="var-name">$params</a>
				</div>
																<div class="var-title">
					<span class="var-type">boolean</span>
					<a href="#$required" title="details" class="var-name">$required</a>
				</div>
																<div class="var-title">
					<span class="var-type">boolean</span>
					<a href="#$result" title="details" class="var-name">$result</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																				
												<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#applyParams" title="details" class="method-name">applyParams</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">&$params</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getMessage" title="details" class="method-name">getMessage</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#isEmpty" title="details" class="method-name">isEmpty</a>
											(<span class="var-type">boolean</span>&nbsp;<span class="var-name">0</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#isRequired" title="details" class="method-name">isRequired</a>
											(<span class="var-type">boolean</span>&nbsp;<span class="var-name">0</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#isValid" title="details" class="method-name">isValid</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#main" title="details" class="method-name">main</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#process" title="details" class="method-name">process</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">&$params</span>, <span class="var-type">sring</span>&nbsp;<span class="var-name">$required</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">&$result</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setEmpty" title="details" class="method-name">setEmpty</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setMessage" title="details" class="method-name">setMessage</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$message</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setRequired" title="details" class="method-name">setRequired</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$required</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$empty" id="$empty"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">boolean</span>
			<span class="var-name">$empty</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">43</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Data existence flag</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$message" id="$message"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$message</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">61</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validation info message</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Nexista/Validators/AlphaValidator.html#var$message">AlphaValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/AlphanumValidator.html#var$message">AlphanumValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/EmailValidator.html#var$message">EmailValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/PhoneValidator.html#var$message">PhoneValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/CustomValidator.html#var$message">CustomValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/GdValidator.html#var$message">GdValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/RegexValidator.html#var$message">RegexValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/DummyValidator.html#var$message">DummyValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/MatchValidator.html#var$message">MatchValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/ValueValidator.html#var$message">ValueValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/RequiredValidator.html#var$message">RequiredValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/XmlValidator.html#var$message">XmlValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/LengthValidator.html#var$message">LengthValidator::$message</a>
								: Validator error message
							</li>
					<li>
				<a href="../Nexista/Validators/NumericValidator.html#var$message">NumericValidator::$message</a>
								: Validator error message
							</li>
				</ul>
		

</div>
<a name="var$params" id="$params"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$params</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">70</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function parameter array</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Nexista/Validators/AlphaValidator.html#var$params">AlphaValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/AlphanumValidator.html#var$params">AlphanumValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/EmailValidator.html#var$params">EmailValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/PhoneValidator.html#var$params">PhoneValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/CustomValidator.html#var$params">CustomValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/GdValidator.html#var$params">GdValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/RegexValidator.html#var$params">RegexValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/DummyValidator.html#var$params">DummyValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/MatchValidator.html#var$params">MatchValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/ValueValidator.html#var$params">ValueValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/RequiredValidator.html#var$params">RequiredValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/XmlValidator.html#var$params">XmlValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/LengthValidator.html#var$params">LengthValidator::$params</a>
								: Function parameter array
							</li>
					<li>
				<a href="../Nexista/Validators/NumericValidator.html#var$params">NumericValidator::$params</a>
								: Function parameter array
							</li>
				</ul>
		

</div>
<a name="var$required" id="$required"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">boolean</span>
			<span class="var-name">$required</span>
			 = <span class="var-default"> true</span>			(line <span class="line-number">34</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Data requirement flag</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$result" id="$result"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">boolean</span>
			<span class="var-name">$result</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">52</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validator result flag</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodapplyParams" id="applyParams"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">applyParams</span> (line <span class="line-number">272</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Load class parameters</p>
<p class="description"><p>This function will check if the required parameters  for this class are supplied and will load them into  $this-&gt;params array</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> success</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			applyParams
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">&$params</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">&$params</span><span class="var-description">: class parameters</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetMessage" id="getMessage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getMessage</span> (line <span class="line-number">253</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets a message from validator</p>
	<ul class="tags">
				<li><span class="field">return:</span> message</li>
				<li><span class="field">see:</span> <a href="../Nexista/Validator.html#methodsetMessage">Validator::setMessage()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getMessage
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodisEmpty" id="isEmpty"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">isEmpty</span> (line <span class="line-number">228</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets data existence</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			isEmpty
		</span>
					(<span class="var-type">boolean</span>&nbsp;<span class="var-name">0</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">0</span><span class="var-description">: true if present, false if absent</span>			</li>
				</ul>
		
			
	</div>
<a name="methodisRequired" id="isRequired"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">isRequired</span> (line <span class="line-number">240</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets data requirement flag</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			isRequired
		</span>
					(<span class="var-type">boolean</span>&nbsp;<span class="var-name">0</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">0</span><span class="var-description">: true if required, false if not</span>			</li>
				</ul>
		
			
	</div>
<a name="methodisValid" id="isValid"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">isValid</span> (line <span class="line-number">205</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets validator result</p>
	<ul class="tags">
				<li><span class="field">return:</span> validator result</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			isValid
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodmain" id="main"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">main</span> (line <span class="line-number">126</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Applies validator</p>
<p class="description"><p>This function should be extended in the custom validators.  The function should return true/false for errors.  If the item to validate is empty, call the method $this-&gt;isEmpty().  Set the property $this-&gt;valid to record validator result.</p><p>Sample code  <div class="src-code"><ol><li><div class="src-line">&nbsp;<span class="src-comm">//get&nbsp;data</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;<span class="src-var">$data&nbsp;</span>=&nbsp;<a href="http://www.php.net/time">time</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-comm">//check&nbsp;if&nbsp;empty&nbsp;value</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$data</span><span class="src-sym">))</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../Nexista/Validator.html#methodsetEmpty">setEmpty</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-comm">//validate</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$data&nbsp;</span>=&nbsp;<span class="src-num">1</span><span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">valid&nbsp;</span>=&nbsp;<span class="src-id">true</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-key">else</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">valid&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-comm">//return&nbsp;true&nbsp;or&nbsp;false&nbsp;for&nbsp;function&nbsp;errors</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-key">return&nbsp;</span><span class="src-id">true</span><span class="src-sym">;</span></div></li>
</ol></div></p></p>
	<ul class="tags">
				<li><span class="field">return:</span> success</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			main
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Nexista/Validators/AlphaValidator.html#methodmain">AlphaValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/AlphanumValidator.html#methodmain">AlphanumValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/EmailValidator.html#methodmain">EmailValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/PhoneValidator.html#methodmain">PhoneValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/CustomValidator.html#methodmain">CustomValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/GdValidator.html#methodmain">GdValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/RegexValidator.html#methodmain">RegexValidator::main()</a>
								: Apply regexp to data
							</li>
					<li>
				<a href="../Nexista/Validators/DummyValidator.html#methodmain">DummyValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/MatchValidator.html#methodmain">MatchValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/ValueValidator.html#methodmain">ValueValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/RequiredValidator.html#methodmain">RequiredValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/XmlValidator.html#methodmain">XmlValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/LengthValidator.html#methodmain">LengthValidator::main()</a>
								: Applies validator
							</li>
					<li>
				<a href="../Nexista/Validators/NumericValidator.html#methodmain">NumericValidator::main()</a>
								: Applies validator
							</li>
				</ul>
	</div>
<a name="methodprocess" id="process"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">process</span> (line <span class="line-number">82</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Applies validator and checks requirements</p>
	<ul class="tags">
				<li><span class="field">return:</span> function success</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			process
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">&$params</span>, <span class="var-type">sring</span>&nbsp;<span class="var-name">$required</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">&$result</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">&$params</span><span class="var-description">: class parameters</span>			</li>
					<li>
				<span class="var-type">sring</span>
				<span class="var-name">$required</span><span class="var-description">: item requirement parameters</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">&$result</span><span class="var-description">: validator success</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetEmpty" id="setEmpty"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setEmpty</span> (line <span class="line-number">216</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets data existence to absent</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setEmpty
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsetMessage" id="setMessage"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setMessage</span> (line <span class="line-number">145</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets a message from validator</p>
<p class="description"><p>This function allows a validator to set a text message that  can be used to present to the user as error. Please note that this  is not the error string itself. These error strings are language dependent  and not set by the validator. This is rather some useful information that  some validators may provide such as where and what kind of error caused  the failure of the validation process.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setMessage
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$message</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$message</span><span class="var-description">: message</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetRequired" id="setRequired"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setRequired</span> (line <span class="line-number">157</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Checks item requirements</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setRequired
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$required</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$required</span><span class="var-description">: item requirements</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 02 Aug 2007 17:35:22 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
	</p>
	</div></body>
</html>